package ru.spies.pages;

import ru.spies.forms.DBFunctionalForm;

public class CountryExistsPage extends AbstractPage{

	private static CountryExistsPage statThis;
	
	private static final String PAGE_NAME="Проверка существования страны";
	
	private boolean good=false;

	private CountryExistsPage() {
		
	}
	
	public static CountryExistsPage getInstance(boolean good){
		if (statThis==null){
			statThis = new CountryExistsPage();
		}
		statThis.setSearchStatus(good);
		return statThis;
	}

	@Override
	public String getThisPage() {
		return getPage(PAGE_NAME, DBFunctionalForm.getInstance().createGoodOrBadCountryForm(good), getStandartHeadContent());
	}

	private void setSearchStatus(boolean good){
		this.good=good;
	}
	
}
